package com.hx.haowumall.haowumallorder.feign;

import com.hx.common.utils.R;
import com.hx.haowumall.haowumallorder.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("haowumall-ware")
public interface WmsFeignService {
    @PostMapping("/haowumallware/waresku/hasstock")
    R getSkuHasStock(@RequestBody List<Long> skuIds);

    @GetMapping("/haowumallware/wareinfo/fare")
    R getFare(@RequestParam("addrId") Long addrId);

    //@RequestBody以json数据格式传输过来
    @PostMapping("/haowumallware/waresku/lock/order")
    R orderLockStock(@RequestBody WareSkuLockVo vo);

}
